package com.sbr.seb.rule.element;

import com.sbr.seb.rule.Specification;

public class NameMinLengthSpecification implements Specification<String> {

	private static final int NAME_MIN_LENGTH = 6;

	@Override
	public boolean isSatisfiedBy(String candidate) {
		if (candidate != null) {
			return (candidate.length() >= NAME_MIN_LENGTH);
		}
		return false;
	}

}
